networking.wireguard.interfaces.<name>.preShutdown

Commands called before shutting down the interface.

Type
strings concatenated with "\n" or (list of string) convertible to it
Default
""
Example
"${pkgs.iproute2}/bin/ip netns del foo"
Declared
<nixpkgs/nixos/modules/services/networking/wireguard.nix>